package com.hqyj.ssm_project.service;

import com.hqyj.ssm_project.pojo.Function;
import com.hqyj.ssm_project.pojo.Role;
import com.hqyj.ssm_project.pojo.Role_Function;
import com.hqyj.ssm_project.pojo.User_Role;

import java.util.List;

public interface RoleService {
    int deleteByPrimaryKey(Integer roleId);

    int insert(Role row);

    int insertSelective(Role row);

    Role selectByPrimaryKey(Integer roleId);

    int updateByPrimaryKeySelective(Role row);

    int updateByPrimaryKey(Role row);

    List<Role> selectAllRole();
    void deleteFromRole_Function(Integer id);

    void setRole(User_Role user_role);

    void deletUser_Role(Integer userId);

    User_Role seleteUser_RoleByUserId(Integer userId);

    List<Role_Function> selectRole_Function();

    void addFunctionToRole(Role_Function role_function);


    Role_Function selectRole_FunctionByfunctionIdAndRoleId(Role_Function role_function);

    void insertRole_Function(Role_Function role_function);

    void deleteRole_Function(Role_Function role_function);

    List<Role> selectRoleAndUser();

    Role selectRoleByRoleName(String superRoleName);
}
